package com.wms.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("登录信息")
public class LoginDto {
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号",required = true)
    @Pattern(regexp = "^1[356789]\\d{9}$",message = "请输入合法手机号")
    private String mobile;
    
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    
    @ApiModelProperty(value = "验证码")
    private String yzm;
}
